package com.yehuishou.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yehuishou.dao.ZLDao;
import com.yehuishou.pojo.Address;
import com.yehuishou.pojo.Order;
import com.yehuishou.pojo.Zulinorder;
import com.yehuishou.service.ZLService;

@Service
public class ZLServiceImpl implements ZLService {
	
	@Autowired
	private ZLDao zldao;

	@Override
	public Zulinorder findByZO(String oid) {
		return zldao.findByZO(oid);
	}

	@Override
	public Address findByDU(Integer uid) {
		return zldao.findByDU(uid);
	}

	@Override
	public void odeit(Zulinorder zlo) {
		zldao.odeit(zlo);
	}

	@Override
	public void ddeit(Address addr) {
		zldao.ddeit(addr);
	}

	@Override
	public Order findByO(String oid) {
		return zldao.findByO(oid);
	}

	@Override
	public void kdeit(Order ord) {
		zldao.kdeit(ord);
	}

	@Override
	public void delo(String oid) {
		zldao.delo(oid);
	}

	@Override
	public void delzlo(String oid) {
		zldao.delzlo(oid);
	}

	@Override
	public List<Zulinorder> findByDQ(Integer ghm) {
		
		return zldao.findByDQ(ghm);
	}

	@Override
	public void updateg(Integer ghm, String oid) {
		
		zldao.updateg(ghm,oid);
	}

	@Override
	public void deleteZl(String [] td_s) {
		zldao.deleteZl(td_s);
		
		//zldao.deleteOd(td_s);
	}

}
